<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>用户列表</title>
		
		<!-- 导入easyui所需要的5个文件开始 -->
		<script type="text/javascript" src="js/jquery-easyui-1.4.5/jquery.min.js" ></script>
		<script type="text/javascript" src="js/jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="js/jquery-easyui-1.4.5/locale/easyui-lang-zh_CN.js"></script>
		<link rel="stylesheet" href="js/jquery-easyui-1.4.5/themes/default/easyui.css" />
		<link rel="stylesheet" href="js/jquery-easyui-1.4.5/themes/icon.css" />
		<!-- 导入easyui所需要的5个文件结束 -->
		
		<script type="text/javascript" src="js/common.js" ></script>
		
		<script type="text/javascript" src="js/user/add.js" ></script>
		<script type="text/javascript" src="js/user/update.js" ></script>
		<script type="text/javascript" src="js/user/deleteByIds.js" ></script>
		<script type="text/javascript" src="js/user/searchName.js" ></script>
		<script type="text/javascript" src="js/user/save.js" ></script>
		<script type="text/javascript" src="js/user/list.js" ></script>
		
		<style>
			#scott-div{
				padding:10px;
			}
			.form-row{
				margin-top:5px;
			}
		</style>
	</head>
<body>
	<!-- http://localhost:8080/scott-easyui/user-list.html -->
	<table id="scott-user"></table>
	
	<!-- 新增和修改都是同一个对话框的处理办法  -->
	<div id="scott-div"  style="width:250px;height:auto;display:none">
		<form id="scott-form" method="post">
			<input type="hidden" name="flag" value="add" />
			<input type="hidden" name="id"   value="0"  />
		
			<div class="form-row">
				<label for="userName">用户名:</label>
				<input class="easyui-validatebox" type="text" name="userName" style="width:150px" data-options="required:true" />
		    </div>
		    
		    
		    <div class="form-row">
				<label for="userAge">年&nbsp;&nbsp;&nbsp;龄:</label>
				<input class="easyui-numberbox" style="width:155px" type="text" name="userAge" data-options="required:true" />
		    </div>
		    
		    <div class="form-row" style="text-align: center;">
		    		<!-- 增加和删除共用一个form -->
		    		<a class="easyui-linkbutton" data-options="iconCls: 'icon-ok'" onclick="save();">保存</a>
		    </div>
		    
    
		</form>
	</div>
</body>
</html>